package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.HouseInfoDO;
import com.mhc.suzuki.dal.query.HouseInfoQuery;

import java.util.List;


/**
 * Manager for HouseInfo.
 */
public interface HouseInfoManager {
    /**
     * query count by query condition.
     */
    int countByQuery(HouseInfoQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(HouseInfoQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(HouseInfoDO record);

    /**
     * insert selective.
     */
    long insertSelective(HouseInfoDO record);

    /**
     * select by query condition.
     */
    List<HouseInfoDO> selectByQuery(HouseInfoQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<HouseInfoDO> selectByQueryWithPage(HouseInfoQuery query);

    /**
     * select by primary key.
     */
    HouseInfoDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( HouseInfoDO record,  HouseInfoQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(HouseInfoDO record, HouseInfoQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(HouseInfoDO record);
}